#include<iostream>
using namespace std;
class Line;
class Point
{
	friend Line;
private:
	int x;
	int y;
public:
	Point(int xx = 0, int yy = 0);
	Point(Point& p);
	~Point();
};
class Line
{
private:
	Point p1, p2;
	double len;
public:
	Line(Point xp1, Point xp2);
	Line(Line& l);
	double getLen();
	~Line();
};